import 'package:flutter_shop/http/http.dart';
import 'package:flutter_shop/pages/base/common_result.dart';
import 'package:flutter_shop/pages/common/login/entity/user_info.dart';
import 'package:flutter_shop/utils/utils.dart';

/// Title:LoginModel <br/>
/// Description: <br/>
/// author:xiemiao <br/>
/// date: 2020-03-11  <br/>
/// version 1.0 <br/>
class LoginModel {
  ///登录
  Future<UserInfo> login(UserInfo mForm) async {
    CommonResult<UserInfo> result = await Http().post("http://mockapi.shandaiguanjia.com/mockapi/mock/1/baixinLogin", data: mForm.toJson());
    return result.data;
  }
}
